package com.barrett.hvzmoderator.com.barrett;

public class Achievement {
	
	public int bid;
	public String name;
	public int points;
	public String pic;
	boolean obtained;
	
	public Achievement () {
		bid = 0;
		name = "";
		points = 0;
		pic = "";
		obtained = false;
	}
	
	public Achievement (int b, String n, int p, String pi) {
		bid = b;
		name = n;
		points = p;
		pic = pi;
		obtained = false;
	}
	
	public Achievement (int b, String n, int p, String pi, boolean ob) {
		bid = b;
		name = n;
		points = p;
		pic = pi;
		obtained = ob;
	}
	public Achievement (String s) {
		String [] split = s.split(",");
		
		bid = Integer.parseInt(split[0]);
		name = split[1];
		points = Integer.parseInt(split[2]);
		pic = split[3];
		obtained = false;
	}
	public void setObtained (Boolean b) {
		
		obtained = b;
		
		
	}
	
}
